home *** CD-ROM | disk | FTP | other *** search
Wrap
XSetup plugin | 2002-01-23 | 3.8 KB | 127 lines
"FILE"="Xteq Systems X-Setup Plugin 6.0" "TYPE"="9" "COUNT"="1" "UIPATH"="Appearance\Start menu\Windows 98" "NAME"="Start Menu Options" "VERSION"="4.10" "LANGUAGE"="VBScript" "OSVERSION"="001" "TEXT 1"="dⁿdel dⁿ" "DESCRIPTION 1"="Programs Context Menu: This allows you to view a standard Explorer context menu when clicking with the right mouse button on an entry in Start->Programs. Note: disabling this will also disable the ability to use drag & drop to move the items inside Programs!" "DESCRIPTION 2"="Start Menu Context: If this is enabled, a context menu will appear when you click on the Start button with the right mouse button." "AUTHOR"="Xteq Systems" "CONTACTURL"="http://www.xteq.com" "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved" "COMMENT 1"="'Multiple Columns' setting from Tom Simpson [thomas@mail.xenafan.com] - thanks a lot!" "COMMENT 2"="Thanks to Ken [k-o@cyberdude.dk] for the "no drag&drop" notice." "COMMENT 3"="Thanks to Dutler, Dennis R [dennis.dutler@eds.com] for the "XP screw up" notice" sV_CommonGroups="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoCommonGroups" '''' sV_StartMenuScroll="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\StartMenuScrollPrograms" sV_ProgramsContext="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoChangeStartMenu" sV_AdminTools="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\StartMenuAdminTools" sV_SubFolders="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoStartMenuSubFolders" sV_IntelliMenus="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\IntelliMenus" sV2_W98a="HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\StartMenuScrollPrograms" sV2_W98b="HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\StartMenuScrollPrograms" SUB Plugin_Initialize '98/2000/ME/XP Call SetUIElement(1,"Show Start->Programs context menu") Call ReadIt(1,sV_ProgramsContext) '98/NT/2000/ME/XP Call SetUIElement(2,"Show user-created folders at top of Start Menu") Call ReadIt(2,sV_SubFolders) END SUB SUB Plugin_CheckData(ElementIndex) END SUB SUB Plugin_Apply(ElementIndex,ElementSubIndex) Call WriteIt(1,sV_ProgramsContext) Call WriteIt(2,sV_SubFolders) Call IndicateSettingChange() END SUB SUB Plugin_Terminate END SUB Sub ReadIt(ITM,PATH1) if RegValueExists(PATH1)=false then 'setting available? 'no setting -> item visible Call SetUIElementEx(ITM,true) else i=RegReadValue(PATH1) if i=0 then Call SetUIElementEx(ITM,true) end if end if End Sub Sub ReadIt_2(ITM,PATH1) if RegValueExists(PATH1)=false then 'setting available? 'no setting -> item not visible Call SetUIElementEx(ITM,false) else i=RegReadValue(PATH1) if i=1 then Call SetUIElementEx(ITM,true) end if end if End Sub Sub ReadIt_3(ITM,PATH1) if RegValueExists(PATH1)=false then 'setting available? 'no setting -> item is active Call SetUIElementEx(ITM,true) else s=RegReadValue(PATH1) if LCase(s)="yes" then Call SetUIElementEx(ITM,true) end if end if End Sub Sub WriteIt(ITM,PATH1) b=GetUIElementEx(ITM) if b=true then s=RegReadValue(PATH1) if IsEmpty(s)=false then Call RegDeleteValue(PATH1) end if else Call RegWriteValue(PATH1,1,2) end if End Sub Sub WriteIt_2(ITM,PATH1) b=GetUIElementEx(ITM) if b=true then Call RegWriteValue(PATH1,1,2) else Call RegWriteValue(PATH1,0,2) end if end Sub Sub WriteIt_3(ITM,PATH1) b=GetUIElementEx(ITM) if b=true then Call RegWriteValue(PATH1,"YES",1) else Call RegWriteValue(PATH1,"NO",1) end if End Sub